package com.itheima.factory;

import com.itheima.controller.ControlerImpl;
import com.itheima.controller.IController;
import com.itheima.dao.DaoImpl;
import com.itheima.dao.IDao;
import com.itheima.service.Iservice;
import com.itheima.service.ServiceImpl;

public class Factory {


    public static IController getController() {

        return new ControlerImpl();
    }
    public static Iservice getService() {

        return new ServiceImpl();
    }
    public static IDao getDao() {

        return new DaoImpl();
    }
}
